//
//  JGRankingOrderHeadView.m
//  JGRider
//
//  Created by 单启志 on 2018/1/29.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "JGBaseOrderHeadView.h"
@interface JGBaseOrderHeadView()
@property (weak, nonatomic) IBOutlet UILabel *addressLab;//地址
@property (weak, nonatomic) IBOutlet UILabel *timeLab;//日期
@property (weak, nonatomic) IBOutlet UILabel *orderNumberLab;//排名
@property (weak, nonatomic) IBOutlet UILabel *goodCommendNumberLab; //好评量

@property (weak, nonatomic) IBOutlet UILabel *typedesLab; // 名，接单量    名，好评量


@property (weak, nonatomic) IBOutlet UIButton *searchBtn;
@end
@implementation JGBaseOrderHeadView

-(void)awakeFromNib{
    [super awakeFromNib];
    
}

-(void)setOrderType:(int)orderType{
    _orderType=orderType;
    NSString *typeDes=@"名，接单量";
    if (orderType==1) {
        typeDes=@"名，好评量";
    }
    self.typedesLab.text=typeDes;
}

//选择地区
- (IBAction)onChoseAddressBtnClick:(id)sender {
}


//选择日期
- (IBAction)onChoseTimeBtnClick:(id)sender {
}

//查询
- (IBAction)onSearchBtnClick:(id)sender {
}



//设置layout
-(void)layoutSubviews{
    [super layoutSubviews]; self.searchBtn.layer.cornerRadius=self.searchBtn.height*0.5;
    self.searchBtn.layer.masksToBounds=YES;


}

@end
